//
//  main.m
//  homework第五部分
//
//  Created by dllo on 16/5/21.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Vegetables.h"
#import "Fruit.h"
#import "Nut.h"
#import "Spices.h"
#import "Meat.h"
int main(int argc, const char * argv[]) {
    @autoreleasepool {
#if 0
      //第二十一类 蔬菜类
        Vegetables *ve1 = [[Vegetables alloc] init];
        [ve1 setName:@"白菜"];
        [ve1 setArea:@"中国东北"];
        [ve1 setPrice:1];
        [ve1 myPrint];
        
        Vegetables *ve2 = [[Vegetables alloc] initWithName:@"胡萝卜" withArea:@"中国南方" withPrice:3];
        [ve2 myPrint];
        
#endif
#if 0
      //第二十二类 水果类
        Fruit *fru1 = [[Fruit alloc] init];
        [fru1 setName:@"苹果"];
        [fru1 setArea:@"亚热带或温带"];
        [fru1 setPrice:1];
        [fru1 myPrint];
        
        Fruit *fru2 = [[Fruit alloc] initWithName:@"香蕉" withArea:@"热带" withPrice:3];
        [fru2 myPrint];
#endif
#if 0
      //第二十三类 坚果类
        Nut *nu1 = [[Nut alloc] init];
        [nu1 setName:@"核桃"];
        [nu1 setArea:@"未知"];
        [nu1 setPrice:30];
        [nu1 myPrint];
        
        Nut *nu2 = [[Nut alloc] initWithName:@"大杏仁" withArea:@"美国" withPrice:60];
        [nu2 myPrint];
        
#endif
#if 0
      //第二十四类 香料类
        Spices *sp1 = [[Spices alloc] init];
        [sp1 setName:@"花椒"];
        [sp1 setArea:@"中国"];
        [sp1 setPrice:30];
        [sp1 myPrint];
        
        Spices *sp2 = [[Spices alloc] initWithName:@"豆蔻" withArea:@"东南亚" withPrice:60];
        [sp2 myPrint];
#endif
#if 1
      //第二十五类 肉类
        Meat *me1 = [[Meat alloc] init];
        [me1 setName:@"牛肉"];
        [me1 setArea:@"澳洲的最好"];
        [me1 setPrice:80];
        [me1 myPrint];
        
        Meat *me2 = [[Meat alloc] initWithName:@"猪肉" withArea:@"中国" withPrice:30];
        [me2 myPrint];
#endif
    }
    return 0;
}
